const {
	http
} = uni.$u

// 卡列表
export const card = (params, config = {}) => http.post('api/NumCard/index', params, config)
// 卡详情
export const cardDetail = (params, config = {}) => http.post('api/NumCard/detail', params, config)
// 票列表
export const ticket = (params, config = {}) => http.post('api/ticket/index', params, config)
// 票详情
export const ticketDetail = (params, config = {}) => http.post('api/ticket/detail', params, config)
// 我的卡包
export const getMyCard = (params, config = {}) => http.post('api/Shop/getMyCard', params, config)
// 我的门票
export const getMyTicket = (params, config = {}) => http.post('api/Shop/getMyTicket', params, config)
// 场地列表
export const court = (params, config = {}) => http.post('api/court/index', params, config)
// 我的场地
export const getMyCourt = (params, config = {}) => http.post('api/court/getMyCourt', params, config)
// 订单列表
export const getMyOrder = (params, config = {}) => http.post('api/Pay/getMyOrder', params, config)
// 个人信息
export const getMember = (params) => http.get('api/pay/getPersonalInfo', params)
// 支付通道接口
// export const payList = (params) => http.get('api/conf/pay_list', params)
// export const payList2 = (params) => http.get('api/conf/pay_list2', params)
export const payList = (params, config = {}) => http.post('api/conf/pay_list', params, config)
export const payList2 = (params, config = {}) => http.post('api/conf/pay_list2', params, config)
// 统一下单
export const createOrder = (params, config = {}) => http.post('api/pay/CreateOrder', params, config)
// 场地详情头部场地
export const getFieldNoList = (params) => http.get('api/court/getFieldNoList', params)
// 场地详情
export const getCourtPrice = (params) => http.get('api/court/getCourtPrice', params)
// 日期
export const getTwoDaysDate = (params) => http.get('/api/court/getTwoDaysDate', params)
// 场地信息及限制级参数
export const getCourtProduct = (params) => http.get('/api/court/getCourtProduct', params)
// 取消订单
export const cancelOrder = (params, config = {}) => http.post('/api/court/cancelOrder', params, config)
// 继续支付
export const toPay = (params, config = {}) => http.post('/api/pay/toPay', params, config)
export const mList = (params, config = {}) => http.post('/api/member.index/mList', params, config)
export const upSave = (params, config = {}) => http.post('/api/member.index/upSave', params, config)
export const mInfo = (params, config = {}) => http.post('/api/member.index/mInfo', params, config)
export const mDel = (params, config = {}) => http.post('/api/member.index/del', params, config)
export const getMemberList = (params, config = {}) => http.post('/api/court/getMemberList', params, config)
export const createFriend = (params, config = {}) => http.post('/api/court/createFriend', params, config)
export const getFriend = (params, config = {}) => http.post('/api/court/getMyFriends', params, config)
export const bfDel = (params, config = {}) => http.post('/api/court/bfDel', params, config)
export const shareFriend = (params, config = {}) => http.post('/api/court/shareFriend', params, config)
export const upImg = (config = {}) => http.upload('/api/member.index/img', config)
export const getShopTicket = (params, config = {}) => http.post('/api/Shop/getShopTicket', params, config)
export const getTicketDateSku = (params, config = {}) => http.post('/api/ticket/getTicketDateSku', params, config)
export const getTicketTimeSku = (params, config = {}) => http.post('/api/ticket/getTicketTimeSku', params, config)
export const getSkuFromTime = (params, config = {}) => http.post('/api/ticket/getSkuFromTime', params, config)
export const audit_save = (params, config = {}) => http.post('/api/audit.index/audit_save', params, config)
export const bodyCheckImg = (config = {}) => http.upload('/api/member.index/bodyCheckImg', config)
export const audit_query = (params, config = {}) => http.post('/api/audit.index/audit_query', params, config)
export const login = (params, config = {}) => http.post('/api/audit.index/login', params, config)
export const m_list = (params, config = {}) => http.post('/api/audit.index/m_list', params, config)
export const checkState = (params, config = {}) => http.post('/api/member.index/checkState', params, config)
export const getPersonalInfo = (params, config = {}) => http.post('/api/member.index/getPersonalInfo', params, config)
export const familer_cert_url = (config = {}) => http.upload('/api/member.index/familer_cert_url', config)
export const audit_info = (params, config = {}) => http.post('/api/audit.index/audit_info', params, config)
export const getMemberByToken = (params, config = {}) => http.post('/api/login/getMemberByToken', params, config)
export const getVenues = (params, config = {}) => http.post('/api/ticket/getVenues', params, config)
export const getMyCourse = (params, config = {}) => http.post('/api/ticket/getMyCourse', params, config)

